package com.tian.common.util

import android.os.Build

/**
 * @author tiansongtao, Email:tiansongtao@up366.com
 * @date 2021/6/11 10:25
 */
object AndroidVersionUtil {


    fun isAndroid5Up() = Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP
    fun isAndroid6Up() = Build.VERSION.SDK_INT >= Build.VERSION_CODES.M
    fun isAndroid7Up() = Build.VERSION.SDK_INT >= Build.VERSION_CODES.N
    fun isAndroid8Up() = Build.VERSION.SDK_INT >= Build.VERSION_CODES.O
    fun isAndroid9Up() = Build.VERSION.SDK_INT >= Build.VERSION_CODES.P
    fun isAndroid10Up() = Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q
    fun isAndroid11Up() = Build.VERSION.SDK_INT >= Build.VERSION_CODES.R

}